package com.shuyun.spring4.showcase.quickstart2;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Created by goodb on 2017/1/3.
 */
public class Main2 {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(JavaConfig.class);
        UseFunctionService2 useFunctionService2 = context.getBean(UseFunctionService2.class);
        System.out.printf(useFunctionService2.sayHello("di2"));
        context.close();
    }
}
